Revert mkshort change while Olaf and I figure out what to do about multibyte.
authorrobertl <robertl>
Tue, 24 Jun 2008 03:56:50 +0000 (03:56 +0000)
committerrobertl <robertl>
Tue, 24 Jun 2008 03:56:50 +0000 (03:56 +0000)
mkshort.c

index 1152f57894f36f695bca79493fe3788aa3b6f0ab..f2bb380d474a566a5acb0a06038ae23d602ff9ac 100644 (file)
--- a/mkshort.c
+++ b/mkshort.c
@@ -453,8 +453,9 @@ mkshort(short_handle h, const char *istring)
                        continue;
                if (hdl->goodchars && (!strchr(hdl->goodchars, tstring[i])))
                        continue;
-               if (!isascii(tstring[i]))
-                       continue;
+// FIXME(robertl): we need a way to not return partial UTF-8, but this isn't it.
+//             if (!isascii(tstring[i]))
+//                     continue;
                *cp++ = tstring[i];
        }
        *cp = 0;